import os
import shutil

from flask import Flask

from app.config import wechat_root, source_dbs_path, decrypt_dbs_path, key, wxdata_path, message_temp_path
from app.db.db_query import get_chat_session_list
from app.db.encrypt_db import EncryptDb
from app.servers import get_chat_msg_by_flag, get_user_chat_file, update_msg_text
from app.type_enum import MESSGAE_TYPE_CHOICES_DISPALY_DICT
from app.utils import check_path, get_str_md5

check_path(wxdata_path)
app = Flask(__name__, template_folder='templates', static_folder="../static")


# 路由
from .views import *
